package com.katze.boot.plugins.security.filter;

import org.springframework.security.web.util.matcher.AntPathRequestMatcher;

import java.util.Arrays;

public interface IPathMatcher {
    String TOKEN_NAME = "Authentication";

    default AntPathRequestMatcher[] matchers () {
        return Arrays.stream(getPatterns()).map(AntPathRequestMatcher::new).toArray(AntPathRequestMatcher[]::new);
    }

    String[] getPatterns();
}
